package com.源码分析;

import java.util.Objects;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import reactor.core.publisher.Mono;

public class FromRunnableDemo {

	private Logger logger = LoggerFactory.getLogger(FromCompletionStage.class);

	@Test
	public void test() {
		Mono.fromRunnable(() -> {
			logger.info("helloFuture");
		}).subscribe(x -> {
			logger.info(Objects.toString(x));
		});
	}

}
